package com.zxisl.javamail;

import com.sun.mail.iap.ProtocolException;
import com.sun.mail.imap.IMAPStore;

import javax.mail.Session;
import javax.mail.URLName;
import java.io.IOException;

/**
 * Created by ade on 2016/11/9.
 */
public class IMAP2Store extends IMAPStore {

    public IMAP2Store(Session session, URLName url) {
        super(session, url);
    }

    @Override
    protected IMAP2Protocol newIMAPProtocol(String host, int port)
            throws IOException, ProtocolException {
        return new IMAP2Protocol(name, host, port, session.getProperties(), isSSL, logger);
    }

}
